home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / FLI106C.ZIP;1 / WINLAST.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-12  |  762 b   |  40 lines

  1. //
  2. // The Fusion Library Interface for DOS
  3. // Version 1.06c
  4. // Copyright (C) 1990, 1991, 1992
  5. // Software Dimensions
  6. //
  7. // FusionWindow
  8. //
  9.  
  10. #include "fliwin.h"
  11.  
  12. #ifdef __BCPLUSPLUS__
  13. #pragma hdrstop
  14. #endif
  15.  
  16. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  17. //
  18. // LastWindow()
  19. //
  20. // Jump to the last window in the stack
  21. //
  22. //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  23.  
  24. void FusionWindow::LastWindow()
  25. {
  26.   if (NumberOfWindows<2)
  27.     return;
  28.  
  29.   WindowElement *Save=Windows[NumberOfWindows-1];
  30.   Windows[0]->Active=0;
  31.   Save->Active=1;
  32.   for (int i=NumberOfWindows-1;i;i--)
  33.     Windows[i]=Windows[i-1];
  34.   Windows[0]=Save;
  35.  
  36.   RemoveAllMenus();
  37.   RefreshWindows();
  38. }
  39.  
  40.